package com.gopay.common.domain.bank.bcdl;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

/**
 * 银行返回错误描述，是否需要做熔断处理
 *
 * @BisBankReturnMsgForFused.java
 * @author lilili
 */
@Entity
@Table(name = "BIS_BANK_RETURNMSG_FOR_FUSED")
public class BisBankReturnMsgForFused implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = -6240311842289123398L;

	/**
	 * 主键ID
	 */
	private long id;

	/**
	 * 付款汇路
	 */
	private String stlmEx;

	/**
	 * 错误码
	 */
	private String returnCode;

	/**
	 * 是否熔断  0 不熔断 1 熔断  2未知
	 */
	private int isFused;

	/**
	 * 银行代码
	 */
	private String bankCode;

	/**
	 * 创建时间
	 */
	private Date createTs;

	/**
	 * 最新更新时间
	 */
	private Date updateTs;

	/**
	 * 备注
	 */
	private String remark;

	@Id
	@SequenceGenerator(name = "SQ_BIS_BANKCODE_FOR_FUSED", sequenceName = "SQ_BIS_BANKCODE_FOR_FUSED",initialValue = 1,allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SQ_BIS_BANKCODE_FOR_FUSED")
	@Column(name = "ID")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "RETURN_CODE", length = 20)
	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}

	@Column(name = "STLM_EX", length = 10)
	public String getStlmEx() {
		return stlmEx;
	}

	public void setStlmEx(String stlmEx) {
		this.stlmEx = stlmEx;
	}

	@Column(name = "IS_FUSED")
	public int getIsFused() {
		return isFused;
	}

	public void setIsFused(int isFused) {
		this.isFused = isFused;
	}


	@Column(name = "BANK_CODE", length = 10)
	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	@Column(name = "CREATE_TS")
	public Date getCreateTs() {
		return createTs;
	}

	public void setCreateTs(Date createTs) {
		this.createTs = createTs;
	}

	@Column(name = "UPDATE_TS")
	public Date getUpdateTs() {
		return updateTs;
	}

	public void setUpdateTs(Date updateTs) {
		this.updateTs = updateTs;
	}

	@Column(name = "REMARK", length = 100)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}



}
